package com.ali.gts.servlet.domain;

import java.math.BigDecimal;

/**
 *
 *  购物车商品列表项,对各种各样商品的封装
 *
 */
public class CartItem {
    private Integer id;

    public Integer getItemCount() {
        return itemCount;
    }

    public void setItemCount(Integer itemCount) {
        this.itemCount = itemCount;
    }



    private Integer itemCount;
    private String name;
    //单价
    private BigDecimal price;
    //某个具体商品的 个数 * price的价格
    private BigDecimal itemTotalPrice;


    public CartItem() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getItemTotalPrice() {
        return itemTotalPrice;
    }

    public void setItemTotalPrice(BigDecimal itemTotalPrice) {
        this.itemTotalPrice = itemTotalPrice;
    }

    @Override
    public String toString() {
        return "CartItem{" +
                "id=" + id +
                ", itemCount=" + itemCount +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", itemTotalPrice=" + itemTotalPrice +
                '}';
    }

    public CartItem(Integer id, Integer itemCount, String name, BigDecimal price, BigDecimal itemTotalPrice) {
        this.id = id;
        this.itemCount = itemCount;
        this.name = name;
        this.price = price;
        this.itemTotalPrice = itemTotalPrice;
    }



}
